package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class AttributeDefinition {

    private int beginIndex;
    private int endIndex;
    private Identifier attributeName;
    private DataType dataType;
    private ReferenceScopeCheck referenceScopeCheck;
    private DefaultClause attributeDefault;
    private CollateClause collateClause;

    public AttributeDefinition(int endIndex,
                               Identifier attributeName,
                               DataType dataType,
                               ReferenceScopeCheck referenceScopeCheck,
                               DefaultClause attributeDefault,
                               CollateClause collateClause) {
        this.beginIndex = attributeName.getBeginIndex();
        this.endIndex = endIndex;
        this.attributeName = attributeName;
        this.dataType = dataType;
        this.referenceScopeCheck = referenceScopeCheck;
        this.attributeDefault = attributeDefault;
        this.collateClause = collateClause;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getAttributeName() {
        return attributeName;
    }

    public DataType getDataType() {
        return dataType;
    }

    public ReferenceScopeCheck getReferenceScopeCheck() {
        return referenceScopeCheck;
    }

    public DefaultClause getAttributeDefault() {
        return attributeDefault;
    }

    public CollateClause getCollateClause() {
        return collateClause;
    }

}
